<!DOCTYPE html>
<body style="overflow:hidden;">
    <div style="transform:scale(1.5); -webkit-transform-origin:top left;">
        <div style="height:300px;width:300px;background-image:repeating-linear-gradient(to bottom right, red 10%, blue 30%);border:1px solid">
        </div>
    </div>
    <script>
        function finishTest() {
            setTimeout(function() { testRunner.notifyDone(); }, 0);
        }
        if (window.testRunner) {
            testRunner.waitUntilDone();
            testRunner.setBackingScaleFactor(2, finishTest);
        }
    </script>
